package cc.rengu.igas.mcps.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2017/6/27.
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    TRANS_FAILED("11111111", "交易失败"),
    BIZ_PARAM_CHECK_ERROR("ER11MC01", "业务参数检查失败"),
    REQUEST_ERROR("ER11MC02", "请求参数有误"),
    MCHNT_APP_INFO_NOT_FOUND("ER12MC01", "获取商户应用信息失败"),
    MCHNT_APP_STATUS_ABNORMAL("ER12MC02", "商户应用状态异常"),
    MCHNT_SECRET_KEY_NOT_MATCH("ER12MC03", "商户应用密钥与系统不匹配"),
    MCHNT_INFO_NOT_FOUND("ER12MC04", "获取商户信息失败"),
    MCHNT_STATUS_ABNORMAL("ER12MC05", "商户状态异常"),
    TERM_INFO_NOT_FOUND("ER12MC06", "获取总分信息失败"),
    TERM_STATUS_ABNORMAL("ER12MC07", "终端状态异常"),
    TERM_TXN_NOT_SUPPORT("ER12MC08", "终端交易不支持"),
    MCHNT_MCC_NOT_FOUND("ER12MC09", "获取商户MCC信息失败"),
    MCHNT_MCC_STATUS_ABNORMAL("ER12MC10", "商户MCC状态异常"),
    MCHNT_MCC_PASS_EXPIRY_DATE("ER12MC11", "商户MCC已超过有效期"),
    MCHNT_AUTH_CTRL_INFO_NOT_FOUND("ER12MC12", "获取商户业务权限控制信息失败"),
    ACCT_TYPE_NOT_SUPPORT("ER12MC13", "不支持的账户类型"),
    POS_CONN_ISSUER("ER12MC14", "查发卡方"),
    POS_INVALID_MCHT("ER12MC15", "无效商户"),
    POS_CONF_CARD("ER12MC16", "没收卡"),
    POS_AUTH_FAIL("ER12MC17", "身份认证失败"),
    POS_INVALID_REL_TXN("ER12MC18", "无效的关联交易"),
    POS_INVALID_AMT("ER12MC19", "无效的金额"),
    POS_INVALID_PAN("ER12MC20", "无效卡号"),
    POS_NOT_EXIST_ISS("ER12MC21", "无此发卡方"),
    POS_CARD_NOT_INIT("ER12MC22", "卡未初始化"),
    POS_REL_TXN_ERRORT("ER12MC23", "关联交易错误"),
    POS_ORIG_TXN_NOT_FOUND("ER12MC24", "找不到原始交易"),
    POS_FORMAT_ERROR("ER12MC25", "报文格式错"),
    POS_NOT_SUPPORT("ER12MC26", "请求的功能不支持"),
    POS_ORIG_ALREADY_REVSAL("ER12MC27", "原交易已冲正"),
    POS_ORIG_ALREADY_CANCEL("ER12MC28", "原交易已撤销"),
    POS_ORIG_STATUS_FAIL("ER12MC29", "原交易失败"),
    POS_ORIG_ALREDY_REFUND("ER12MC30", "原交易已退货"),
    POS_CARDNO_ERROR("ER12MC31", "请求的卡BIn不支持"),
    POS_NOT_ALLOW_FALLBACK("ER12MC32", "不允许降级交易"),
    POS_NOT_ALLOW_TERM("ER12MC33", "不允许终端进行的交易"),
    POS_OVER_AMT_LIMIT("ER12MC34", "超出金额限制"),
    POS_NOT_ALLOW_AMT("ER12MC35", "原始金额错误"),
    POS_OVER_AMT_TIMES("ER12MC36", "超出消费次数限制"),
    POS_NOT_SIGN("ER12MC37", "终端未签到"),
    POS_REPEAT_TXN("ER12MC38", "重复交易"),
    POS_SYSTEM_ERROR("ER12MC39", "系统错"),
    POS_INVALID_TERM("ER12MC40", "终端号找不到"),
    POS_PIN_FORMAT_ERR("ER12MC42", "PIN格式错误"),
    POS_MAC_FORMAT_ERR("ER12MCA0", "MAC格式错误"),
    GET_CARD_BIN_INFO_ERROR("ER12MC43", "获取卡BIN信息失败"),
    GET_PAY_ORDER_INFO_ERROR("ER12MC44", "获取支付订单信息失败"),
    ORDER_NOT_ALLOW_PAY("ER12MC45", "当前订单不能支付"),
    UPDATE_ORDER_STATUS_ERROR("ER12MC46", "更新支付订单信息失败"),
    CALL_BIZ_SERVICE_ERROR("ER12MC47", "调用业务系统处理失败"),
    NOT_SURPPORT_BIZ_TYPE_ERROR("ER12MC48", "不支持短信业务类型"),
    ORDER_CANT_CLOSE("ER12MC49", "当前订单不能关闭"),
    ORDER_NOT_PAY("ER12MC50", "订单未支付成功，请先支付"),
    GET_ORDER_SEQ_NUM_ERROR("ER12MC51", "获取支付订单序号失败"),
    INSERT_ORDER_INFO_ERROR("ER12MC52", "登记支付订单信息失败"),
    INSERT_TXN_EXPAND_ERROR("ER12MC53", "登记支付拓展表失败"),
    ORDER_CANT_REFUND("ER12MC54", "当前订单不允许退款"),
    ORDER_CANT_CANCEL("ER12MC55", "当前订单不允许撤销"),
    MCHNT_APP_SECRTT_NOT_FOUND("ER12MC56", "获取商户接入密钥信息失败"),
    MCHNT_INBLACK_ERROR("ER12MC57", "黑名单商户拒绝交易"),
    MCHNT_OUTOFLOCATION_ERROR("ER12MC58", "超出交易地理范围"),
    TERMINFO_NOT_FOUND("ER12MC59", "未上送终端信息，拒绝交易"),
    ORDER_CANT_AUTHFINISH("ER12MC60", "当前订单不允许预授权完成"),
    ORDER_CANT_REVSAL("ER12MC61", "当前订单不允许冲正"),
    GET_TXN_EXPAND_ERROR("ER12MC62", "查询支付拓展表失败"),
    UPDATE_TERM_KEY_ERROR("ER12MC63", "更新终端密钥失败"),
    UPDATE_TERM_INFO_ERROR("ER12MC64", "更新终端信息失败"),
    INSERT_DATA_ERROR("ER12MC65", "插入数据失败"),
    POS_ORIG_ALREADY_AUTH_FINISH("ER12MC66", "原交易已授权完成"),
    POS_SIGN_ERROR("ER12MC67", "签名验证失败"),
    UPDATE_DATA_ERROR("ER12MC68", "更新数据失败"),
    POS_ORIG_ALREDY_FINISH("ER12MC69", "原交易已完成"),
    USER_ALREADY_REGISTER("ER12MC70", "用户已注册"),
    GET_USER_INFO_ERROR("ER12MC71", "用户信息不存在"),
    USER_LOGIN_ERROR_OVERRUN("ER12MC72", "用户登录失败次数超限"),
    USER_PASSWORD_ERROR("ER12MC73", "用户密码错误"),
    NON_SHOP_OWNER("ER12MC74", "店员未绑定商户"),
    USER_PASSWORD_MODIFY_ERROR("ER12MC75", "用户密码修改失败"),
    VERIF_CODE_CHECK_ERROR("ER12MC76", "验证码校验失败"),
    SYSTEM_ERROR("ER129999", "系统异常"),
    SN_CHECK_ERROR("ER12MC77", "银联序列号验证失败"),
    NO_PASS_NOT_SUPPORT("ER12MC78", "不支持小额免密操作"),
    AMOUNT_OUT_CONTROL("ER12MC79", "交易金额超出小额免密限制金额"),
    INSERT_MCHNT_ORDER_INFO_ERROR("ER12MC80", "登记商户订单信息失败"),
    INSERT_USER_ORDER_INFO_ERROR("ER12MC81", "登记用户订单信息失败"),
    POS_ORIG_ORDER_STATUS_ERROR("ER12MC82", "原交易订单状态异常"),
    POS_WECHAT_MSG_PUSH_ERROR("ER12MC83", "微信信息推送失败"),
    AUTH_ID_ERROR("ER12MC84", "授权码不一致"),
    POS_DEV_MSG_PUSH_ERROR("ER12MC85", "设备信息推送失败"),
    PRODUCT_NOT_EXIST("EM12MC86", "产品不存在"),
    ACCT_PRE_AUTH_TRADE_ERROR("EM12MC87", "虚拟账户预授权交易失败"),
    ENCRYPT_PLAT_ERROR("EM12MC88", "调用加密机失败"),
    CHANEL_NOT_SUPPORT("EM12MC89", "渠道不支持此交易"),
    COMOP_PAYMENT_RETURN_FAIL("EM12MC90", "调营销失败"),
    POS_PARAM_DOWNLOAD_NOT_SUPPORT("EM12MC91", "暂不支持pos基本参数下载"),
    CARD_NO_INBLACK_ERROR("ER12MC92", "黑名单卡号拒绝交易"),
    MCHNT_LIMIT_AMT_OVER("ER12MC93", "交易金额超出商户限额"),
    CALC_MCHNT_FEE_ERROR("ER12MC94", "计算商户手续费失败"),
    UPDATE_ORDER_ERROR("ER12MC95", "更新订单状态失败"),
    QUERY_ERROR("ER12MC96", "查询失败"),
    REGISTER_ORDER_ERROR("ER12MC97", "注册订单失败"),
    TRIAL_ERROR("ER12MC98", "试算失败"),
    AREA_CHECK_ERROR("ER12MC99", "终端地区代码验证失败"),
    ORDER_CLOSED("ER12MC0A", "订单已关闭"),
    ORDER_FINISH("ER12MC0B", "订单已完成"),
    TRANS_AMT_DISACCORD("ER12MC0C", "交易金额不一致"),
    ORDER_EXPR_ERROR("ER12MC0D", "订单已失效"),
    TRANS_PROCESSING("ER12MC0E", "订单处理中"),
    WCHAT_MCHNT_INFO_NOT_FOUND("ER12MC0F", "获取微信子商户信息失败"),
    ALIPAY_MCHNT_INFO_NOT_FOUND("ER12MC0G", "获取支付宝子商户信息失败"),
    UPQC_MCHNT_INFO_NOT_FOUND("ER12MC0H", "获取银联子商户信息失败"),
    UPDATE_MCHNT_ORDER_INFO_ERROR("ER12MC0I", "更新商户订单信息失败"),
    UPDATE_USER_ORDER_INFO_ERROR("ER12MC0J", "更新用户订单信息失败"),
    ILLT_MCHNT_SIGN_ERROR("ER12MC0K", "商户验签失败"),
    TRANS_FAIL("ER12MC0L", "订单支付失败"),
    TERM_TMK_ALRADY_DOWNLOAD("ER12MC0M", "终端主秘钥已下载"),
    TERM_TMK_NOT_DOWNLOAD("ER12MC0N", "终端未下载主秘钥"),
    NOT_SURPPORT_PARAM_TYPE_ERROR("ER12MC0P", "不支持参数类型下载"),
    NOT_FOUND_ACQCODE("ER12MC0Q", "法人行未配置银联收单机构号"),
    NOT_SURPPORT_CREDIT_QUERY("ER12MC0R", "暂不支持贷记卡余额查询"),
    MCHNT_FREE_NOT_EXIST("ER12MC0S", "商户手续费查询失败"),
    WX_MCHNT_NOT_SUPPORT("ER12MC0T", "小微商户不支持磁条卡交易"),
    D0_NOT_SUPPORT("ER12MC0U", "D0商户不支持此交易"),
    POS_PAYMENT_NO_SERVICE("ER12MC0V", "终端已停用POS代付业务"),
    MOBILE_NOT_MATCHING("ER12MC0W", "手机号与商户预留手机号不一致"),
    GEN_SMS_CODE_ERROR("ER12MC0X", "生成短信验证码失败"),
    GET_SMS_INFO_ERROR("ER12MC0Y", "获取短信验证码信息失败"),
    SMS_CODE_EXPIRED("ER12MC0Z", "验证码已过期"),
    VERIFY_SMS_CODE_ERROR("ER12MC1A", "短信验证码验证失败"),
    NOT_CONF_MSG_TEMPLATE("ER12MC1B", "未配置消息模板"),
    MAKE_SMS_CODE_ERROR("ER12MC1C", "根据动态模板获取字段值失败"),
    NOT_CONF_CHANNEL_TXN_MAP("ER12MC1D", "未配置通道通道服务调用配置"),
    TERM_ALREADY_SIGNED("ER12MC1E", "终端已签到"),
    MCHNT_FREE_NOT_MATCHING("ER12MC1F", "手续费不一致"),
    ACCT_NOT_ONESELF("ER12MC1G", "结算账户非本行账户"),
    POS_PAYMENT_NO_BALANCE("ER12MC1H", "代付剩余额度不足"),
    POS_PAYMENT_LMT_UPD_ERR("ER12MC1I", "限额修改失败"),
    MCHNT_LIMIT_UPATE_ERROR("ER12MC1J", "登记或者更新交易日累计限额统计信息失败"),
    USER_PASSWORD_ERROR_MORE("ER12MC1K", "用户密码连续错误次数超限"),
    NOT_PASSWORD_OFFSET_VALUE("ER12MC1L", "没有绑定协议编号"),
    PASS_WORD_CHECK_ERROR("ER12MC1M", "密码校验失败"),
    CERT_INFO_NOT_EXIST("ER12MC1N", "证书配置不存在"),
    REFUND_AMT_OVER("ER12MC1O", "退款金额超出限额"),
    MCC_LIMIT_AMT_OVER("ER12MC1P", "交易金额超出MCC限额"),
    MOMP_CODE_NOT_EXIST("ER12MC1Q", "未配置营销产品编码"),
    TRADE_NOT_SUPPORT("ER12MC1R", "交易不支持"),
    REAL_TIME_MIN_AMT_NOT_EXIST("ER12MC1S", "实时入账最小金额未配置"),
    MCHNT_FEEINFO_NOT_EXIST("ER12MC1T", "商户费率信息不存在"),
    PLEASE_ENTER_PASSWORD("ER12MC1U", "请输入密码"),
    MCHNT_ACCT_INFO_NOT_EXIST("ER12MC1V", "商户结算账户信息不存在"),
    POS_RSP_TIME_OUT("ER129998", "业务处理超时"),
    POS_PAYMENT_PROCESSING("ER12MC1W", "交易受理成功，请查询最终状态"),
    POS_PAYMENT_PAY_ERROR("ER12MC1X", "结算转账失败"),
    POS_PAYMENT_STARTDATE_ERROR("ER12MC1Y", "起始日期大于结束日期"),
    POS_PAYMENT_QURRY_TOOLONG("ER12MC1Z", "查询跨度大于三个月"),
    POS_PAYMENT_QURRY_NOT_EXIST("ER12MC2A", "未查询到交易流水信息"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER12MC2B", "用户未登录或会话已过期"),
    OVER_LIMIT_AMT("ER12MC2C", "超过设定的限额"),
    GET_LIMIT_ERR("ER12MC2D", "限额设置失败"),
    CHANNEL_CONFIG_NOT_EXIST("ER12MC2E", "通道配置不存在"),
    ORDER_NOEXIT("ER12MC2F", "订单不存在"),
    MCHNT_NO_PERMISSION("ER12MC2G", "商户无交易权限"),
    MCHNT_AMT_OVER("ER12MC2H", "商户超限"),
    GET_QRCODE_INVALID("ER12MC2I", "二维码无效"),
    SEC_PLAN_NOEXIT("ER12MC2J", "安全计划标识缺失"),
    SEC_PLAN_STATUS_FALSE("ER12MC2K", "安全计划状态异常"),
    CERT_STATUS_INVALID("ER12MC2L", "安全证书失效"),
    CERT_LOAD_INVALID("ER12MC2M", "加载证书异常"),
    QUERY_DATA_IS_NULL("ER12MC2N", "查询数据为空"),
    GENERATE_SIGN_ERROR("ER12MC2O", "生成数字签名失败"),
    MSG_VALID_CHECK_ERROR("ER21MC2P", "报文检查失败"),
    VERIFY_SIGN_ERROR("ER12MC2R", "校验数字签名失败"),
    SESSION_INVALID("ER12MC2S", "会话失效,请重新登陆"),
    USER_PAYING("ER12MC2T", "用户支付中，请确认支付结果"),
    USER_INFO_MISMATCH("ER12MC2U", "用户信息不匹配"),
    ORDER_ALREADY_PAY("ER12MC2P", "订单已支付，为允许重复支付"),
    POS_BIZ_SERVICE_ERROR("ER22MC99", "系统处理失败"),
    ;
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
